package com.yykj.user.center.server.emun;

import lombok.Getter;

/**
 * @author chenl
 * @version 1.0
 * @date 2021/10/20 22:46
 */
@Getter
public enum OrderType {
    TU_WEN_WEN_ZHEN(11,"图文问诊"),
    YU_YIN_WEN_ZHEN(12,"语音问诊"),
    SHI_PIN_WEN_ZHEN(13,"视频问诊"),
    YU_YUE_GUA_HAO(14,"预约挂号"),
    JIAN_CHA_DING_DAN(15,"检查订单"),
    JIAN_YAN_DING_DAN(16,"检验订单");

    private Integer code;
    private String display;

    OrderType(Integer code, String display) {
        this.code = code;
        this.display = display;
    }

    public static String getDisplay(Integer value) {
        for (OrderType orderType : values()) {
            if (orderType.code == value) {
                return orderType.display;
            }
        }
        return null;
    }
}
